home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_300 / 361_01 / filexist.c < prev    next >
C/C++ Source or Header  |  1991-09-18  |  480b  |  24 lines

  1.  
  2. /* FileExist.c --> Taken from CUG-273 & Turbo-C Bible.
  3.  *
  4.  * Author: J.Ekwall                                     13 September 91
  5.  *
  6.  * Copyrighted to the Public Domain.  Unlimited Distribution Authorized.
  7.  *
  8.  * User Assumes All Risks/Liabilities.
  9.  *
  10.  * Last Update: 13 September 91/EK
  11.  */
  12.  
  13. #include <dir.h>
  14. #include <stdek.h>
  15. #include <gadgets.h>
  16.  
  17. int FileExists(char *FileName)
  18. {
  19.     struct ffblk fb;
  20.         
  21.     return !findfirst(FileName, &fb, 0);
  22. }
  23.  
  24.